import request from '@/utils/request'

// 查询案例信息
export function listCaseRecord(query) {
  return request({
    url: '/UserRecord/selectUserRecordByUserId',
    method: 'get',
    params: query
  })
}
// 查询案例信息
export function listCaseRecord1(query) {
  return request({
    url: '/caseImage/selectCaseImageByUserId',
    method: 'get',
    params: query
  })
}
// 查询案例信息
export function listCaseRecord2(query) {
  return request({
    url: '/caseImage/selectCaseImageByTime',
    method: 'get',
    params: query
  })
}
// 状态修改
export function editCaseStatus(caseId, caseStatus) {
    const data = {
      caseId,
      caseStatus
    }
    return request({
      url: '/caseRecord/editCaseStatus',
      method: 'put',
      data: data
    })
  }
  // 删除
  export function removeCaseById(caseId) {
    return request({
      url: '/caseRecord/removeCaseById/' + caseId,
      method: 'delete'
    })
  }

